package database.mybatis.a_introduction.mapper;

import database.mybatis.entity.SysRole;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//@Mapper
public interface SysRoleMapper {
    SysRole getById(String id);
    @Select("SELECT * FROM sys_role WHERE id = #{id}")
    SysRole findById(String id);
    List<SysRole> getAll();
}
